<template>
  <div class="preview-wrap">
    <el-container >
      <el-main style="padding:0px;"><sxc-engine-page v-if="pageData.width"/></el-main>
      <!-- <el-aside width="100px" >
        <el-row><el-button type="primary" id="btn-prev" round @click="prevScene()">上一页</el-button></el-row>
        <el-row><el-button type="primary" id="btn-next" round @click="nextScene()">下一页</el-button></el-row>
      </el-aside> -->
    </el-container>
  </div>
</template>

<script>
import { mapActions, mapGetters, mapMutations, mapState } from 'vuex'
export default {
  components: {
  },
  name: '',
  data() {
    return {

    }
  },
  computed: {
    ...mapState('programs', ['pageData', 'scenes']),
    ...mapGetters('programs', ['bgAudioList'])
  },
  created() {
    const { id } = this.$route.params
    this.getProgramInfo(id)
  },
  methods: {
    ...mapMutations('programs', ['prevScene', 'nextScene']),
    ...mapActions('programs', ['getProgramInfo'])
  },
  mounted(){
    
  }
}
</script>

<style lang="scss" >
.preview-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  overflow: auto;
}

.right {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .el-row {
    margin-top: 40px;
  }
}
.swiper-container {
  position: relative;
  width: 100%;
  height: 100%;
}
</style>
